﻿using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BreacherCreature.Components.Lights
{
    class FlickerOff : Flicker
    {
        bool _finished = false;
        public FlickerOff() : base(0, -1, true) 
        {
            FlickerCount = 8;
        }

        public override void Update(GameTime gameTime)
        {
            if (!_finished)
            {
                base.Update(gameTime);

                if (!IsOn && !_isFlickering)
                    _finished = true;
            }
        }
    }
}
